package com.guinea.skoru.service;
// Generated 2011-3-19 15:17:31 by Hibernate Tools 3.4.0.Beta1

import java.io.Serializable;
import java.util.List;

import com.guinea.core.orm.hibernate.HibernateDao;
import com.guinea.core.service.CRUDManager;
import com.guinea.skoru.dao.SkoruShareholderDao;
import com.guinea.skoru.entity.SkoruShareholder;

public class SkoruShareholderManager extends CRUDManager {

	private SkoruShareholderDao skoruShareholderDao;

	public HibernateDao getEntityDao() {
		return getSkoruShareholderDao();
	}

	public SkoruShareholder getSkoruShareholder(Serializable id) {
		return (SkoruShareholder)getSkoruShareholderDao().get(id);
	}

	public SkoruShareholderDao getSkoruShareholderDao() {
		return skoruShareholderDao;
	}

	public void setSkoruShareholderDao(SkoruShareholderDao skoruShareholderDao) {
		this.skoruShareholderDao = skoruShareholderDao;
	}
	public List findShareholders(Long applicationId,String typeCode){
		return getSkoruShareholderDao().find("from SkoruShareholder s where s.applyId = ? and s.typeCode = ? and s.status = '1'",new Object[]{applicationId,typeCode});
	}
}
